package com.wwj.study.adapter.pay;

/**
 * @Author: wuweijun
 * @Date: 2018/11/24 20:43
 */
public class PayService {

    IPay pay;

    public PayService(String type) {
        this.pay = PayStrategy.createPayAdapter(type);
    }

    public void pay (){
        pay.toPay();
    }
}
